Source File
ctz.go
Belonging Package
github.com/RoaringBitmap/roaring/v2
//go:build go1.9// +build go1.9// "go1.9", from Go version 1.9 onward// See https://golang.org/pkg/go/build/#hdr-Build_Constraintspackage roaringimport// countTrailingZeros returns the number of trailing zero bits in x; the result is 64 for x == 0.func countTrailingZeros( uint64) int {return bits.TrailingZeros64()}// countTrailingOnes returns the number of trailing one bits in x// The result is 64 for x == 9,223,372,036,854,775,807.// The result is 0 for x == 0.func countTrailingOnes( uint64) int {return bits.TrailingZeros64(^)}
![]() |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |